ConstFunction

Function that always returns the pre-computed stored result.

Author

fzzyhmstrs

Since

0.6.8

Parameters

T

input type, unused

R

output type

r

constant result to pass through the function

Constructors

Link copied to clipboard
constructor(r: R)

Functions

Link copied to clipboard
open fun <V : Any> andThen(p0: Function<in R, out V>): Function<T, V>
Link copied to clipboard
open override fun apply(t: T): R
Link copied to clipboard
open fun <V : Any> compose(p0: Function<in V, out T>): Function<V, R>
Link copied to clipboard
open override fun get(): R